package org.ym.basic.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 雪花算法配置类
 * @author
 */
@Configuration
public class SnowflakeConfig {
    @Value("${snowFlakeIdWorker.workerId:0}")
    public long workId;
    @Value("${snowFlakeIdWorker.dataCenterId:0}")
    public long dataCenterId;
}
